package com.lg.service;

import com.lg.dto.DTO;
import com.lg.entity.Student;
import org.springframework.stereotype.Service;

import java.util.Arrays;

@Service("studentService")
public class StudentServiceImpl implements StudentService {
    @Override
    public DTO getAllStudents() {
        Student[] studentArray = {new Student("0001","张三"),new Student("0002","李四")};
        return new DTO(200,"查询成功", Arrays.asList(studentArray));
    }
}
